package com.suning.sawp.vo.logistics;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 
 * 功能描述： <br>
 * 物流信息请求参数
 *
 * @author 12072522
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class LogisticsRequest implements Serializable {

    /**
     */
    private static final long serialVersionUID = 1L;

    /**
     * 自营
     */
    public static final String TYPE_SELFSUPPORT = "1";
    /**
     * c店
     */
    public static final String TYPE_CSTORE = "2";

    /**
     * 会员编号
     */
    @NotEmpty(message = "会员编号不能为空")
    private String memberNo;

    /**
     * oms订单号,查询订单详情使用
     */
    @NotEmpty(message = "订单号不能为空")
    private String omsOrderNo;

    /**
     * oms订单行号,查询物流明细使用
     */
    @NotEmpty(message = "订单行号不能为空")
    private String omsItemNo;

    /**
     * 1:自营 2:c店
     */
    @Min(value = 1, message = "查询类型不正确")
    @Max(value = 2, message = "查询类型不正确")
    private String type;

    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo;
    }

    public String getOmsOrderNo() {
        return omsOrderNo;
    }

    public void setOmsOrderNo(String omsOrderNo) {
        this.omsOrderNo = omsOrderNo;
    }

    public String getOmsItemNo() {
        return omsItemNo;
    }

    public void setOmsItemNo(String omsItemNo) {
        this.omsItemNo = omsItemNo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "LogisticsRequest [memberNo=" + memberNo + ", omsOrderNo=" + omsOrderNo + ", omsItemNo=" + omsItemNo
                + ", type=" + type + "]";
    }

}
